package com.gitee.freakchicken.dbapi.basic.controller;

import com.gitee.freakchicken.dbapi.basic.domain.Group;
import com.gitee.freakchicken.dbapi.basic.service.C_t1Kvj7mO;
import com.gitee.freakchicken.dbapi.basic.util.C_3CjyYmwF;
import com.gitee.freakchicken.dbapi.common.ResponseDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/group")
public class C_GLIkQW4P {

    @Autowired
    C_t1Kvj7mO gf_7I18cyf9;

    @RequestMapping("/create")
    public ResponseDto m_wScbA5dK(Group group) {
        group.setCreateUserId(C_3CjyYmwF.m_j3EEUXak());
        return gf_7I18cyf9.m_XVMcayle(group);
    }

    @RequestMapping("/delete/{id}")
    public ResponseDto m_wUbkvEZt(@PathVariable String id) {
        return gf_7I18cyf9.m_cuctP2vb(id);
    }

    @RequestMapping("/getAll")
    public List<Group> m_eQuOW7cg() {
        List<Group> lf_QwZxaB3L = gf_7I18cyf9.m_pQx43Fwy();
        return lf_QwZxaB3L;
    }

    @RequestMapping("/update")
    public void m_lO50oss7(Group group) {
        gf_7I18cyf9.m_tejdWuLo(group);
    }
}
